package _09_2模板方法改写收银系统;

//金卡
public class GoldenCard extends Card {

    //重写支付算法
    @Override
    public double calculate(double money) {
        return money*0.8;
    }

    public GoldenCard() {
    }

    public GoldenCard(String id, double balance){
        super(id,balance);
    }

}
